package com.hubiwei.realtime.suger.service;

import com.hubiwei.realtime.suger.bean.Product;
import com.hubiwei.realtime.suger.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


@Service
public class ProductServiceImpl implements ProductService{
    
    @Autowired
    ProductMapper product;
    @Override
    public BigDecimal gmv(int date) {
        return product.gmv(date);
    }
    
    @Override
    public List<Map<String, Object>> gmvByTmName(int date) {
        return product.gmvByTmName(date);
    }
    
    @Override
    public List<Product> gmvByC3(int date) {
        return product.gmvByC3(date);
    }
    
    @Override
    public List<Product> gmvBySpu(int date) {
        return product.gmvBySpu(date);
    }
    
}
